package com.springboot.cloud.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.springboot.cloud.entities.User;

@Mapper
public interface UserMapper extends BaseMapper<User>{
	
	@Select("select * from user where username=#{0};")
	public User getUserByName(@Param("0")String name);
}
